function loadMarkerData() {		
			// setup 10 random points
			var bounds = map.getBounds();
			var southWest = bounds.getSouthWest();
			var northEast = bounds.getNorthEast();
			var lngSpan = northEast.lng() - southWest.lng();
			var latSpan = northEast.lat() - southWest.lat();

			// This is a dummy array of markers from our internal database of markers
			
			markerData = new Array();
			
			markerData[0] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"SwingTime Performance", "Dance", "SwingTime", new Date(), new Date(), "Toyon Lounge", "SwingTime shows off their stuff at this high-energy performance."];
			markerData[0][5].setHours(14, 0);
			markerData[0][6].setHours(15, 0);

			markerData[1] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Viennese Waltz Workshop", "Dance", "Viennese Ball Opening Committee", new Date(), new Date(), "Graduate Community Center", "Come learn the Viennese Waltz!"];
			markerData[1][5].setHours(13, 30);
			markerData[1][6].setHours(15, 0);

			markerData[2] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"SPBA Consulting Workshop I", "Business", "Stanford Pre-Business Association", new Date(), new Date(), "Old Union Room 200", "Find out what being a consultant means, how to become one, etc."];
			markerData[2][5].setHours(12, 0);
			markerData[2][6].setHours(14, 0);

			markerData[3] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"DV8 Team Performance", "Dance", "DV8 Dance Team", new Date(), new Date(), "Roble Theater", "Wicked cool dance moves sure to impress everyone!"];
			markerData[3][5].setHours(14, 0);
			markerData[3][6].setHours(15, 0);

			markerData[4] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Financial Literacy Workshop", "Business", "Stanford Pre-Business Association", new Date(), new Date(), "Graduate Community Center", "Learn about the basics of financial literacy and about on-campus resources for further learning."];
			markerData[4][5].setHours(13, 30);
			markerData[4][6].setHours(15, 0);

			markerData[5] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"SPBA Consulting Workshop I", "Business", "Stanford Pre-Business Association", new Date(), new Date(), "Old Union Room 200", "Find out what being a consultant means, how to become one, etc."];
			markerData[5][5].setHours(12, 0);
			markerData[5][6].setHours(14, 0);

			markerData[6] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Stanford Football vs. Cal", "Athletics", "Stanford Football", new Date(), new Date(), "Football Stadium", "Sure to be absolute carnage for the poor visiting team."];
			markerData[6][5].setHours(14, 0);
			markerData[6][6].setHours(15, 0);

			markerData[7] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Stanford Football vs. Oregon", "Athletics", "Stanford Football", new Date(), new Date(), "Football Stadium", "Sure to be absolute carnage for the poor visiting team, but not nearly as bad as the Cal Victory."];
			markerData[7][5].setHours(13, 30);
			markerData[7][6].setHours(15, 0);

			markerData[8] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Stanford Football vs. USC", "Athletics", "Stanford Football", new Date(), new Date(), "Football Stadium", "Stanford Football aims to win itself an offer to a bowl game this year--don't miss any of the excitement.."];
			markerData[8][5].setHours(12, 0);
			markerData[8][6].setHours(14, 0);

			markerData[9] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Stanford Tennis vs. Cal", "Athletics", "Stanford Tennis", new Date(), new Date(), "Taube Courts", "Dual one of a two-dual weekend for the Card; admission is free for all.  Come enjoy an afternoon of exciting doubles and singles."];
			markerData[9][5].setHours(14, 0);
			markerData[9][6].setHours(15, 0);

			markerData[10] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"SwingTime Performance II", "Dance", "SwingTime", new Date(), new Date(), "Toyon Lounge", "SwingTime shows off their stuff at this high-energy performance, second in their three-performance series."];
			markerData[10][5].setHours(14, 0);
			markerData[10][6].setHours(15, 0);

			markerData[11] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Cross-step waltz Workshop", "Dance", "Viennese Ball Opening Committee", new Date(), new Date(), "Graduate Community Center", "Come learn this slower, more relaxed style of the waltz family."];
			markerData[11][5].setHours(13, 30);
			markerData[11][6].setHours(15, 0);

			markerData[12] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"SPBA Consulting Workshop II", "Business", "Stanford Pre-Business Association", new Date(), new Date(), "Old Union Room 200", "Part II of the series: find out what being a consultant means, how to become one, etc."];
			markerData[12][5].setHours(12, 0);
			markerData[12][6].setHours(14, 0);

			markerData[13] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Visiting Artist Exhibition: David A. Lopez", "Cultural", "Cantor Arts Center", new Date(), new Date(), "Cantor Arts Center", "A visiting local artist displays their works in the central courtyard.  Refreshments served."];
			markerData[13][5].setHours(14, 0);
			markerData[13][6].setHours(15, 0);

			markerData[14] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Visiting Artist Exhibition: Frida Kahlo II", "Cultural", "Cantor Arts Center", new Date(), new Date(), "Cantor Arts Center", "A visiting local artist displays their works in the central courtyard.  Refreshments served."];
			markerData[14][5].setHours(13, 30);
			markerData[14][6].setHours(15, 0);

			markerData[15] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Visiting Artist Exhibition: James Hegarty, photography", "Cultural", "Cantor Arts Center", new Date(), new Date(), "Cantor Arts Center", "A visiting local artist displays their works in the central courtyard.  Refreshments served."];
			markerData[15][5].setHours(12, 0);
			markerData[15][6].setHours(14, 0);

			markerData[16] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Student Advising Open House", "Academics", "Student Advising", new Date(), new Date(), "Sweet Hall", "Come learn about the many resources available for student academic advising."];
			markerData[16][5].setHours(14, 0);
			markerData[16][6].setHours(15, 0);

			markerData[17] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Activities Fair", "Academics", "Student Advising", new Date(), new Date(), "Sweet Hall Courtyard", "Come learn about the many incredible student groups on the Farm."];
			markerData[17][5].setHours(13, 30);
			markerData[17][6].setHours(15, 0);

			markerData[18] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Oboe Recital", "Music & The Arts", "Stanford Concert Network", new Date(), new Date(), "Cubberly Auditorium", "Sam Schultz' quarter-end recital."];
			markerData[18][5].setHours(12, 0);
			markerData[18][6].setHours(14, 0);

			markerData[19] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"K Flay Live!", "Music & The Arts", "Stanford Concert Network", new Date(), new Date(), "White Plaza", "K Flay makes a smashing comback to the Farm; admission is free to all."];
			markerData[19][5].setHours(14, 0);
			markerData[19][6].setHours(15, 0);

			markerData[20] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Girltalk Concert", "Music & The Arts", "Stanford Concert Network", new Date(), new Date(), "Memorial Auditorium", "Brought to you by the Stanford Concert Network and KZSU radio."];
			markerData[20][5].setHours(13, 30);
			markerData[20][6].setHours(15, 0);

			markerData[21] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Viennese Waltz Workshop III", "Dance", "Viennese Ball Opening Committee", new Date(), new Date(), "Graduate Community Center", "Come learn the Viennese Waltz, in case you missed the previous lessons!"];
			markerData[21][5].setHours(13, 30);
			markerData[21][6].setHours(15, 0);

			markerData[22] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"SPBA Post-graduate Panel", "Business", "Stanford Pre-Business Association", new Date(), new Date(), "Old Union Room 150", "Find out about possibilities available for students in the financial and economic sectors."];
			markerData[22][5].setHours(12, 0);
			markerData[22][6].setHours(14, 0);

			markerData[23] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"BROCK Party", "Party & Social", "Big Game Committee", new Date(), new Date(), "Tresidder Union", "Reigniting the awesome energy of the last BROCK party, brought to you a second time by the staff of the Big Game Committee."];
			markerData[23][5].setHours(14, 0);
			markerData[23][6].setHours(15, 0);

			markerData[24] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Cardinal Calypso Concert", "Music & The Arts", "Cardinal Calypso", new Date(), new Date(), "White Plaza", "Steel drums and ridiculously attractive people combined--you surely don't want to miss out."];
			markerData[24][5].setHours(13, 30);
			markerData[24][6].setHours(15, 0);

			markerData[25] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"SPBA Staff Introductory Meeting", "Business", "Stanford Pre-Business Association", new Date(), new Date(), "Old Union Room 100", "Come learn about ways to get involved as the staff of SPBA."];
			markerData[25][5].setHours(12, 0);
			markerData[25][6].setHours(14, 0);

			markerData[26] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Exotic Erotic", "Party & Social", "Roth", new Date(), new Date(), "Roth", "No description necessary."];
			markerData[26][5].setHours(14, 0);
			markerData[26][6].setHours(15, 0);

			markerData[27] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Casino Royale Screening", "Party & Social", "Soto Dorm", new Date(), new Date(), "Lawn in front of Stern Dining", "Daniel Craig's debut as the indescribable James Bond.  Popcorn provided, while supplies last."];
			markerData[27][5].setHours(13, 30);
			markerData[27][6].setHours(15, 0);

			markerData[28] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Big Game Rally", "Party & Social", "Big Game Committee", new Date(), new Date(), "The Row", "Four row houses host local music groups and feature five dance floors so you can get psyched up for the coming game!"];
			markerData[28][5].setHours(12, 0);
			markerData[28][6].setHours(14, 0);

			markerData[29] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Decadance Performance", "Dance", "Decadance", new Date(), new Date(), "Roble Gymnasium", "Enough spectacular movies and sizzling performers to provide all the study break you could ever want."];
			markerData[29][5].setHours(14, 0);
			markerData[29][6].setHours(15, 0);

			markerData[30] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Viennese Waltz Workshop", "Dance", "Viennese Ball Opening Committee", new Date(), new Date(), "Graduate Community Center", "Come learn the Viennese Waltz!"];
			markerData[30][5].setHours(13, 30);
			markerData[30][6].setHours(15, 0);

			markerData[31] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Stanford Tennis vs. UT Austin", "Athletics", "Stanford Tennis", new Date(), new Date(), "Taube Courts", "Promises to be an epic battle between the Cardinal and the burnt orange Longhorns.  Live commentary promised from John McEnroe."];
			markerData[31][5].setHours(13, 30);
			markerData[31][6].setHours(15, 0);

			markerData[32] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"MECA Barbecue", "Cultural", "MECA", new Date(), new Date(), "Old Union Courtyard", "Good food and friendship for all comers.  Come even if you're just in the mood for terriffic food."];
			markerData[32][5].setHours(12, 0);
			markerData[32][6].setHours(14, 0);

			markerData[33] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Stanford Football Autograph Signing", "Athletics", "Stanford Football", new Date(), new Date(), "Maples Pavilion", "Posters provided; come meet Stanford's crew of dedicated student-athletes and learn more about the upcoming season."];
			markerData[33][5].setHours(14, 0);
			markerData[33][6].setHours(15, 0);

			markerData[34] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"ACDC Concert at Stanford", "Music & The Arts", "Stanford Concert Network", new Date(), new Date(), "Frost Ampitheater", "A once-in-a-lifetime chance to see the legendary ACDC perform less than a mile from your freshman dorm.  Tickets on sale at the Tresidder Union ticket office."];
			markerData[34][5].setHours(13, 30);
			markerData[34][6].setHours(15, 0);

			markerData[35] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Summer Research Poster Session", "Academics", "Student Advising", new Date(), new Date(), "Old Union 2nd floor", "Learn about exciting summer work by your peers and learn how you too can get involved."];
			markerData[35][5].setHours(12, 0);
			markerData[35][6].setHours(14, 0);

			markerData[36] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Cardinal Mariachi Performance", "Music & The Arts", "Cardinal Mariachi", new Date(), new Date(), "Cantor Arts Center", "Violin, harp, trumpet, and a whole host of other fantastic instruments tht you've never heard of before.  Red vines provided, while supplies last."];
			markerData[36][5].setHours(14, 0);
			markerData[36][6].setHours(15, 0);

			markerData[37] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"First Thursday @ Cantor", "Music & The Arts", "Cantor Arts Center", new Date(), new Date(), "Cantor Arts Center", "Performances, art exhibitions, and tasty gourmet snacks provided.  Note: the gift shop WILL be open for business."];
			markerData[37][5].setHours(13, 30);
			markerData[37][6].setHours(15, 0);

			markerData[38] = [southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random(),
				"Viennese Waltz Workshop II", "Dance", "Viennese Ball Opening Committee", new Date(), new Date(), "Graduate Community Center", "Come learn more advanced steps of the graceful, majestic Viennese Waltz!"];
			markerData[38][5].setHours(13, 30);
			markerData[38][6].setHours(15, 0);

			// Assign initial ranks
			for (var i = 0; i < markerData.length; i++) { 
				markerData[i][9] = i;
			}

			//alert(markerData);
			return markerData;
		}

function printTime(dateObj) {
	var hours = dateObj.getHours();
	var minutes = dateObj.getMinutes();

	if(hours > 12) {
	hours = hours - 12;
	hours.toString();
	}
	if(minutes < 10) {
	minutes = "0" + minutes.toString();
	}
	return(hours+":"+minutes);
}


function loadPreferences() {
	preferences = new Array();
	preferences[0] = ["SwingTime", 0];
	preferences[1] = ["Viennese Ball Opening Committee", 2];
	preferences[2] = ["Stanford Pre-Business Association", 1];
	preferences[3] = ["DV8 Dance Team", 0];
	preferences[4] = ["Stanford Football", 0];
	preferences[5] = ["Stanford Tennis", 0];
	preferences[6] = ["Cantor Arts Center", 0];
	preferences[7] = ["Student Advising", 0];
	preferences[8] = ["Stanford Concert Network", 0];
	preferences[9] = ["Cardinal Calypso", 0];
	preferences[10] = ["Roth", 0];
	preferences[11] = ["Soto Dorm", 0];
	preferences[12] = ["Big Game Committee", 0];
	preferences[13] = ["Decadance", 0];
	preferences[14] = ["MECA", 0];
	preferences[15] = ["Cardinal Mariachi", 0];
}